<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<meta http-equiv="X-UA-Compatible" content="IE=9"/>
<meta name="generator" content="Doxygen 1.8.7"/>
<title>Catharsis.NET.Commons: Catharsis.Commons.ConvertExtensions Class Reference</title>
<link href="tabs.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="jquery.js"></script>
<script type="text/javascript" src="dynsections.js"></script>
<link href="navtree.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="resize.js"></script>
<script type="text/javascript" src="navtree.js"></script>
<script type="text/javascript">
  $(document).ready(initResizable);
  $(window).load(resizeHeight);
</script>
<link href="search/search.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="search/search.js"></script>
<script type="text/javascript">
  $(document).ready(function() { searchBox.OnSelectItem(0); });
</script>
<link href="doxygen.css" rel="stylesheet" type="text/css" />
</head>
<body>
<div id="top"><!-- do not remove this div, it is closed by doxygen! -->
<div id="titlearea">
<table cellspacing="0" cellpadding="0">
 <tbody>
 <tr style="height: 56px;">
  <td style="padding-left: 0.5em;">
   <div id="projectname">Catharsis.NET.Commons
   &#160;<span id="projectnumber">2.8</span>
   </div>
  </td>
 </tr>
 </tbody>
</table>
</div>
<!-- end header part -->
<!-- Generated by Doxygen 1.8.7 -->
<script type="text/javascript">
var searchBox = new SearchBox("searchBox", "search",false,'Search');
</script>
  <div id="navrow1" class="tabs">
    <ul class="tablist">
      <li><a href="index.html"><span>Main&#160;Page</span></a></li>
      <li class="current"><a href="annotated.html"><span>Classes</span></a></li>
      <li>
        <div id="MSearchBox" class="MSearchBoxInactive">
        <span class="left">
          <img id="MSearchSelect" src="search/mag_sel.png"
               onmouseover="return searchBox.OnSearchSelectShow()"
               onmouseout="return searchBox.OnSearchSelectHide()"
               alt=""/>
          <input type="text" id="MSearchField" value="Search" accesskey="S"
               onfocus="searchBox.OnSearchFieldFocus(true)" 
               onblur="searchBox.OnSearchFieldFocus(false)" 
               onkeyup="searchBox.OnSearchFieldChange(event)"/>
          </span><span class="right">
            <a id="MSearchClose" href="javascript:searchBox.CloseResultsWindow()"><img id="MSearchCloseImg" border="0" src="search/close.png" alt=""/></a>
          </span>
        </div>
      </li>
    </ul>
  </div>
  <div id="navrow2" class="tabs2">
    <ul class="tablist">
      <li><a href="annotated.html"><span>Class&#160;List</span></a></li>
      <li><a href="classes.html"><span>Class&#160;Index</span></a></li>
      <li><a href="hierarchy.html"><span>Class&#160;Hierarchy</span></a></li>
      <li><a href="functions.html"><span>Class&#160;Members</span></a></li>
    </ul>
  </div>
</div><!-- top -->
<div id="side-nav" class="ui-resizable side-nav-resizable">
  <div id="nav-tree">
    <div id="nav-tree-contents">
      <div id="nav-sync" class="sync"></div>
    </div>
  </div>
  <div id="splitbar" style="-moz-user-select:none;" 
       class="ui-resizable-handle">
  </div>
</div>
<script type="text/javascript">
$(document).ready(function(){initNavTree('class_catharsis_1_1_commons_1_1_convert_extensions.html','');});
</script>
<div id="doc-content">
<!-- window showing the filter options -->
<div id="MSearchSelectWindow"
     onmouseover="return searchBox.OnSearchSelectShow()"
     onmouseout="return searchBox.OnSearchSelectHide()"
     onkeydown="return searchBox.OnSearchSelectKey(event)">
<a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(0)"><span class="SelectionMark">&#160;</span>All</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(1)"><span class="SelectionMark">&#160;</span>Classes</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(2)"><span class="SelectionMark">&#160;</span>Namespaces</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(3)"><span class="SelectionMark">&#160;</span>Functions</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(4)"><span class="SelectionMark">&#160;</span>Properties</a></div>

<!-- iframe showing the search results (closed by default) -->
<div id="MSearchResultsWindow">
<iframe src="javascript:void(0)" frameborder="0" 
        name="MSearchResults" id="MSearchResults">
</iframe>
</div>

<div class="header">
  <div class="summary">
<a href="#pub-static-methods">Static Public Member Functions</a> &#124;
<a href="class_catharsis_1_1_commons_1_1_convert_extensions-members.html">List of all members</a>  </div>
  <div class="headertitle">
<div class="title">Catharsis.Commons.ConvertExtensions Class Reference</div>  </div>
</div><!--header-->
<div class="contents">

<p> 
 <a href="class_catharsis_1_1_commons_1_1_convert_extensions.html#details">More...</a></p>
<table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="pub-static-methods"></a>
Static Public Member Functions</h2></td></tr>
<tr class="memitem:a02f44dc31a2b9001132f329055a2358d"><td class="memItemLeft" align="right" valign="top">static bool&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_catharsis_1_1_commons_1_1_convert_extensions.html#a02f44dc31a2b9001132f329055a2358d">Boolean</a> (this <a class="el" href="class_catharsis_1_1_commons_1_1_convert.html">Convert</a> self, object subject)</td></tr>
<tr class="separator:a02f44dc31a2b9001132f329055a2358d"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:af96a6343bc5d3189e999fc3a1cbf0eef"><td class="memItemLeft" align="right" valign="top">static byte&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_catharsis_1_1_commons_1_1_convert_extensions.html#af96a6343bc5d3189e999fc3a1cbf0eef">Byte</a> (this <a class="el" href="class_catharsis_1_1_commons_1_1_convert.html">Convert</a> self, object subject)</td></tr>
<tr class="separator:af96a6343bc5d3189e999fc3a1cbf0eef"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a2be5fd4b617015b9e26443831b476b7e"><td class="memItemLeft" align="right" valign="top">static DateTime&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_catharsis_1_1_commons_1_1_convert_extensions.html#a2be5fd4b617015b9e26443831b476b7e">DateTime</a> (this <a class="el" href="class_catharsis_1_1_commons_1_1_convert.html">Convert</a> self, object subject)</td></tr>
<tr class="separator:a2be5fd4b617015b9e26443831b476b7e"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:af511d51da4b92cda60e281007fd890e3"><td class="memItemLeft" align="right" valign="top">static decimal&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_catharsis_1_1_commons_1_1_convert_extensions.html#af511d51da4b92cda60e281007fd890e3">Decimal</a> (this <a class="el" href="class_catharsis_1_1_commons_1_1_convert.html">Convert</a> self, object subject)</td></tr>
<tr class="separator:af511d51da4b92cda60e281007fd890e3"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a9c11b1a897b67cc3acf3c1156db5eed3"><td class="memItemLeft" align="right" valign="top">static double&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_catharsis_1_1_commons_1_1_convert_extensions.html#a9c11b1a897b67cc3acf3c1156db5eed3">Double</a> (this <a class="el" href="class_catharsis_1_1_commons_1_1_convert.html">Convert</a> self, object subject)</td></tr>
<tr class="separator:a9c11b1a897b67cc3acf3c1156db5eed3"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:aa9f4995eedfe9931b163ecc647c0251f"><td class="memItemLeft" align="right" valign="top">static Guid&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_catharsis_1_1_commons_1_1_convert_extensions.html#aa9f4995eedfe9931b163ecc647c0251f">Guid</a> (this <a class="el" href="class_catharsis_1_1_commons_1_1_convert.html">Convert</a> self, object subject)</td></tr>
<tr class="separator:aa9f4995eedfe9931b163ecc647c0251f"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a56ae0017556349d536e2355c8d449448"><td class="memItemLeft" align="right" valign="top">static short&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_catharsis_1_1_commons_1_1_convert_extensions.html#a56ae0017556349d536e2355c8d449448">Int16</a> (this <a class="el" href="class_catharsis_1_1_commons_1_1_convert.html">Convert</a> self, object subject)</td></tr>
<tr class="separator:a56ae0017556349d536e2355c8d449448"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ab18da38145cfaf7661a0dc6b4efb3163"><td class="memItemLeft" align="right" valign="top">static int&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_catharsis_1_1_commons_1_1_convert_extensions.html#ab18da38145cfaf7661a0dc6b4efb3163">Int32</a> (this <a class="el" href="class_catharsis_1_1_commons_1_1_convert.html">Convert</a> self, object subject)</td></tr>
<tr class="separator:ab18da38145cfaf7661a0dc6b4efb3163"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a52143e73f7a632a7fb1674c215248333"><td class="memItemLeft" align="right" valign="top">static long&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_catharsis_1_1_commons_1_1_convert_extensions.html#a52143e73f7a632a7fb1674c215248333">Int64</a> (this <a class="el" href="class_catharsis_1_1_commons_1_1_convert.html">Convert</a> self, object subject)</td></tr>
<tr class="separator:a52143e73f7a632a7fb1674c215248333"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:adf3e35508e5b78599fdaa6728b5ed5bc"><td class="memItemLeft" align="right" valign="top">static IPAddress&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_catharsis_1_1_commons_1_1_convert_extensions.html#adf3e35508e5b78599fdaa6728b5ed5bc">IPAddress</a> (this <a class="el" href="class_catharsis_1_1_commons_1_1_convert.html">Convert</a> self, object subject)</td></tr>
<tr class="separator:adf3e35508e5b78599fdaa6728b5ed5bc"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a172dd9014589265e6e8345b0882d1589"><td class="memItemLeft" align="right" valign="top">static Regex&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_catharsis_1_1_commons_1_1_convert_extensions.html#a172dd9014589265e6e8345b0882d1589">Regex</a> (this <a class="el" href="class_catharsis_1_1_commons_1_1_convert.html">Convert</a> self, object subject)</td></tr>
<tr class="separator:a172dd9014589265e6e8345b0882d1589"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a9ef0024ed81eef65a6569a676430e7d3"><td class="memItemLeft" align="right" valign="top">static Single&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_catharsis_1_1_commons_1_1_convert_extensions.html#a9ef0024ed81eef65a6569a676430e7d3">Single</a> (this <a class="el" href="class_catharsis_1_1_commons_1_1_convert.html">Convert</a> self, object subject)</td></tr>
<tr class="separator:a9ef0024ed81eef65a6569a676430e7d3"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a74fb1084f67c0016a7b14736fe494033"><td class="memItemLeft" align="right" valign="top">static string&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_catharsis_1_1_commons_1_1_convert_extensions.html#a74fb1084f67c0016a7b14736fe494033">String</a> (this <a class="el" href="class_catharsis_1_1_commons_1_1_convert.html">Convert</a> self, object subject)</td></tr>
<tr class="separator:a74fb1084f67c0016a7b14736fe494033"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ae96c56fa2ecfa63ee4aa2c0b4d5a01c2"><td class="memItemLeft" align="right" valign="top">static Uri&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_catharsis_1_1_commons_1_1_convert_extensions.html#ae96c56fa2ecfa63ee4aa2c0b4d5a01c2">Uri</a> (this <a class="el" href="class_catharsis_1_1_commons_1_1_convert.html">Convert</a> self, object subject)</td></tr>
<tr class="separator:ae96c56fa2ecfa63ee4aa2c0b4d5a01c2"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table>
<a name="details" id="details"></a><h2 class="groupheader">Detailed Description</h2>
<div class="textblock"><p>Set of extension methods for class <a class="el" href="class_catharsis_1_1_commons_1_1_convert.html">Convert</a>.</p>
<dl class="section see"><dt>See also</dt><dd><a class="el" href="class_catharsis_1_1_commons_1_1_convert.html">Convert</a></dd></dl>
</div><h2 class="groupheader">Member Function Documentation</h2>
<a class="anchor" id="a02f44dc31a2b9001132f329055a2358d"></a>
<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">static bool Catharsis.Commons.ConvertExtensions.Boolean </td>
          <td>(</td>
          <td class="paramtype">this <a class="el" href="class_catharsis_1_1_commons_1_1_convert.html">Convert</a>&#160;</td>
          <td class="paramname"><em>self</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">object&#160;</td>
          <td class="paramname"><em>subject</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">static</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">
<p>Converts target object to the bool value, using non-strict approach.</p>
<p>The following algorithm is used to determine how to perform such conversion: </p><ul>
<li>
If <em>subject</em>  is a <code>null</code> reference, the result is <code>false</code>. </li>
<li>
If <em>subject</em>  is a bool value, it's returned as it is. </li>
<li>
If <em>subject</em>  is a positive numeric value, the result is <code>true</code>, if it's negative or zero - the result is <code>false</code>. </li>
<li>
If <em>subject</em>  is a string, <code>true</code> is returned if it contains at least one character, <code>false</code> otherwise. </li>
<li>
If <em>subject</em>  implements IEnumerable, <code>true</code> is returned if it contains at least one element, <code>false</code> otherwise. </li>
<li>
If <em>subject</em>  is a FileInfo value, <code>true</code> is returned if associated file is not empty, <code>false</code> otherwise. </li>
<li>
If <em>subject</em>  is a Stream value, <code>true</code> is returned if it's not empty, <code>false</code> otherwise. </li>
<li>
If <em>subject</em>  is a Match value, <code>true</code> is returned if it's successful, <code>false</code> otherwise. </li>
</ul>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">self</td><td>Extended converter instance.</td></tr>
    <tr><td class="paramname">subject</td><td>Target object for conversion.</td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>Returns</dt><dd><em>subject</em>  instance that was converted to bool.</dd></dl>
<dl class="exception"><dt>Exceptions</dt><dd>
  <table class="exception">
    <tr><td class="paramname">ArgumentNullException</td><td>If <em>self</em>  is a <code>null</code> reference.</td></tr>
  </table>
  </dd>
</dl>

</div>
</div>
<a class="anchor" id="af96a6343bc5d3189e999fc3a1cbf0eef"></a>
<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">static byte Catharsis.Commons.ConvertExtensions.Byte </td>
          <td>(</td>
          <td class="paramtype">this <a class="el" href="class_catharsis_1_1_commons_1_1_convert.html">Convert</a>&#160;</td>
          <td class="paramname"><em>self</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">object&#160;</td>
          <td class="paramname"><em>subject</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">static</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">
<p>Converts target object to the byte value. Returns <code>null</code> if object is a <code>null</code> reference or conversion is not possible.</p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">self</td><td>Extended converter instance.</td></tr>
    <tr><td class="paramname">subject</td><td>Target object for conversion.</td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>Returns</dt><dd><em>subject</em>  instance that was converted to byte, or a <code>null</code> reference.</dd></dl>
<dl class="exception"><dt>Exceptions</dt><dd>
  <table class="exception">
    <tr><td class="paramname">ArgumentNullException</td><td>If <em>self</em>  is a <code>null</code> reference.</td></tr>
  </table>
  </dd>
</dl>

</div>
</div>
<a class="anchor" id="a2be5fd4b617015b9e26443831b476b7e"></a>
<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">static DateTime Catharsis.Commons.ConvertExtensions.DateTime </td>
          <td>(</td>
          <td class="paramtype">this <a class="el" href="class_catharsis_1_1_commons_1_1_convert.html">Convert</a>&#160;</td>
          <td class="paramname"><em>self</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">object&#160;</td>
          <td class="paramname"><em>subject</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">static</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">
<p>Converts target object to the <a class="el" href="class_catharsis_1_1_commons_1_1_convert_extensions.html#a2be5fd4b617015b9e26443831b476b7e">DateTime</a> value. Returns <code>null</code> if object is a <code>null</code> reference or conversion is not possible.</p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">self</td><td>Extended converter instance.</td></tr>
    <tr><td class="paramname">subject</td><td>Target object for conversion.</td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>Returns</dt><dd><em>subject</em>  instance that was converted to <a class="el" href="class_catharsis_1_1_commons_1_1_convert_extensions.html#a2be5fd4b617015b9e26443831b476b7e">DateTime</a>, or a <code>null</code> reference.</dd></dl>
<dl class="exception"><dt>Exceptions</dt><dd>
  <table class="exception">
    <tr><td class="paramname">ArgumentNullException</td><td>If <em>self</em>  is a <code>null</code> reference.</td></tr>
  </table>
  </dd>
</dl>

</div>
</div>
<a class="anchor" id="af511d51da4b92cda60e281007fd890e3"></a>
<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">static decimal Catharsis.Commons.ConvertExtensions.Decimal </td>
          <td>(</td>
          <td class="paramtype">this <a class="el" href="class_catharsis_1_1_commons_1_1_convert.html">Convert</a>&#160;</td>
          <td class="paramname"><em>self</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">object&#160;</td>
          <td class="paramname"><em>subject</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">static</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">
<p>Converts target object to the decimal value. Returns <code>null</code> if object is a <code>null</code> reference or conversion is not possible.</p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">self</td><td>Extended converter instance.</td></tr>
    <tr><td class="paramname">subject</td><td>Target object for conversion.</td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>Returns</dt><dd><em>subject</em>  instance that was converted to decimal, or a <code>null</code> reference.</dd></dl>
<dl class="exception"><dt>Exceptions</dt><dd>
  <table class="exception">
    <tr><td class="paramname">ArgumentNullException</td><td>If <em>self</em>  is a <code>null</code> reference.</td></tr>
  </table>
  </dd>
</dl>

</div>
</div>
<a class="anchor" id="a9c11b1a897b67cc3acf3c1156db5eed3"></a>
<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">static double Catharsis.Commons.ConvertExtensions.Double </td>
          <td>(</td>
          <td class="paramtype">this <a class="el" href="class_catharsis_1_1_commons_1_1_convert.html">Convert</a>&#160;</td>
          <td class="paramname"><em>self</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">object&#160;</td>
          <td class="paramname"><em>subject</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">static</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">
<p>Converts target object to the double value. Returns <code>null</code> if object is a <code>null</code> reference or conversion is not possible.</p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">self</td><td>Extended converter instance.</td></tr>
    <tr><td class="paramname">subject</td><td>Target object for conversion.</td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>Returns</dt><dd><em>subject</em>  instance that was converted to double, or a <code>null</code> reference.</dd></dl>
<dl class="exception"><dt>Exceptions</dt><dd>
  <table class="exception">
    <tr><td class="paramname">ArgumentNullException</td><td>If <em>self</em>  is a <code>null</code> reference.</td></tr>
  </table>
  </dd>
</dl>

</div>
</div>
<a class="anchor" id="aa9f4995eedfe9931b163ecc647c0251f"></a>
<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">static Guid Catharsis.Commons.ConvertExtensions.Guid </td>
          <td>(</td>
          <td class="paramtype">this <a class="el" href="class_catharsis_1_1_commons_1_1_convert.html">Convert</a>&#160;</td>
          <td class="paramname"><em>self</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">object&#160;</td>
          <td class="paramname"><em>subject</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">static</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">
<p>Converts target object to the <a class="el" href="class_catharsis_1_1_commons_1_1_convert_extensions.html#aa9f4995eedfe9931b163ecc647c0251f">Guid</a> value. Returns <code>null</code> if object is a <code>null</code> reference or conversion is not possible.</p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">self</td><td>Extended converter instance.</td></tr>
    <tr><td class="paramname">subject</td><td>Target object for conversion.</td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>Returns</dt><dd><em>subject</em>  instance that was converted to <a class="el" href="class_catharsis_1_1_commons_1_1_convert_extensions.html#aa9f4995eedfe9931b163ecc647c0251f">Guid</a>, or a <code>null</code> reference.</dd></dl>
<dl class="exception"><dt>Exceptions</dt><dd>
  <table class="exception">
    <tr><td class="paramname">ArgumentNullException</td><td>If <em>self</em>  is a <code>null</code> reference.</td></tr>
  </table>
  </dd>
</dl>

</div>
</div>
<a class="anchor" id="a56ae0017556349d536e2355c8d449448"></a>
<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">static short Catharsis.Commons.ConvertExtensions.Int16 </td>
          <td>(</td>
          <td class="paramtype">this <a class="el" href="class_catharsis_1_1_commons_1_1_convert.html">Convert</a>&#160;</td>
          <td class="paramname"><em>self</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">object&#160;</td>
          <td class="paramname"><em>subject</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">static</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">
<p>Converts target object to the short value. Returns <code>null</code> if object is a <code>null</code> reference or conversion is not possible.</p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">self</td><td>Extended converter instance.</td></tr>
    <tr><td class="paramname">subject</td><td>Target object for conversion.</td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>Returns</dt><dd><em>subject</em>  instance that was converted to short, or a <code>null</code> reference.</dd></dl>
<dl class="exception"><dt>Exceptions</dt><dd>
  <table class="exception">
    <tr><td class="paramname">ArgumentNullException</td><td>If <em>self</em>  is a <code>null</code> reference.</td></tr>
  </table>
  </dd>
</dl>

</div>
</div>
<a class="anchor" id="ab18da38145cfaf7661a0dc6b4efb3163"></a>
<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">static int Catharsis.Commons.ConvertExtensions.Int32 </td>
          <td>(</td>
          <td class="paramtype">this <a class="el" href="class_catharsis_1_1_commons_1_1_convert.html">Convert</a>&#160;</td>
          <td class="paramname"><em>self</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">object&#160;</td>
          <td class="paramname"><em>subject</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">static</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">
<p>Converts target object to the int value. Returns <code>null</code> if object is a <code>null</code> reference or conversion is not possible.</p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">self</td><td>Extended converter instance.</td></tr>
    <tr><td class="paramname">subject</td><td>Target object for conversion.</td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>Returns</dt><dd><em>subject</em>  instance that was converted to int, or a <code>null</code> reference.</dd></dl>
<dl class="exception"><dt>Exceptions</dt><dd>
  <table class="exception">
    <tr><td class="paramname">ArgumentNullException</td><td>If <em>self</em>  is a <code>null</code> reference.</td></tr>
  </table>
  </dd>
</dl>

</div>
</div>
<a class="anchor" id="a52143e73f7a632a7fb1674c215248333"></a>
<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">static long Catharsis.Commons.ConvertExtensions.Int64 </td>
          <td>(</td>
          <td class="paramtype">this <a class="el" href="class_catharsis_1_1_commons_1_1_convert.html">Convert</a>&#160;</td>
          <td class="paramname"><em>self</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">object&#160;</td>
          <td class="paramname"><em>subject</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">static</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">
<p>Converts target object to the long value. Returns <code>null</code> if object is a <code>null</code> reference or conversion is not possible.</p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">self</td><td>Extended converter instance.</td></tr>
    <tr><td class="paramname">subject</td><td>Target object for conversion.</td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>Returns</dt><dd><em>subject</em>  instance that was converted to long, or a <code>null</code> reference.</dd></dl>
<dl class="exception"><dt>Exceptions</dt><dd>
  <table class="exception">
    <tr><td class="paramname">ArgumentNullException</td><td>If <em>self</em>  is a <code>null</code> reference.</td></tr>
  </table>
  </dd>
</dl>

</div>
</div>
<a class="anchor" id="adf3e35508e5b78599fdaa6728b5ed5bc"></a>
<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">static IPAddress Catharsis.Commons.ConvertExtensions.IPAddress </td>
          <td>(</td>
          <td class="paramtype">this <a class="el" href="class_catharsis_1_1_commons_1_1_convert.html">Convert</a>&#160;</td>
          <td class="paramname"><em>self</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">object&#160;</td>
          <td class="paramname"><em>subject</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">static</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">
<p>Converts target object to the <a class="el" href="class_catharsis_1_1_commons_1_1_convert_extensions.html#adf3e35508e5b78599fdaa6728b5ed5bc">IPAddress</a> value. Returns <code>null</code> if object is a <code>null</code> reference or conversion is not possible.</p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">self</td><td>Extended converter instance.</td></tr>
    <tr><td class="paramname">subject</td><td>Target object for conversion.</td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>Returns</dt><dd><em>subject</em>  instance that was converted to <a class="el" href="class_catharsis_1_1_commons_1_1_convert_extensions.html#adf3e35508e5b78599fdaa6728b5ed5bc">IPAddress</a>, or a <code>null</code> reference.</dd></dl>
<dl class="exception"><dt>Exceptions</dt><dd>
  <table class="exception">
    <tr><td class="paramname">ArgumentNullException</td><td>If <em>self</em>  is a <code>null</code> reference.</td></tr>
  </table>
  </dd>
</dl>

</div>
</div>
<a class="anchor" id="a172dd9014589265e6e8345b0882d1589"></a>
<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">static Regex Catharsis.Commons.ConvertExtensions.Regex </td>
          <td>(</td>
          <td class="paramtype">this <a class="el" href="class_catharsis_1_1_commons_1_1_convert.html">Convert</a>&#160;</td>
          <td class="paramname"><em>self</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">object&#160;</td>
          <td class="paramname"><em>subject</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">static</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">
<p>Converts target object to the <a class="el" href="class_catharsis_1_1_commons_1_1_convert_extensions.html#a172dd9014589265e6e8345b0882d1589">Regex</a> value. Returns <code>null</code> if object is a <code>null</code> reference or conversion is not possible.</p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">self</td><td>Extended converter instance.</td></tr>
    <tr><td class="paramname">subject</td><td>Target object for conversion.</td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>Returns</dt><dd><em>subject</em>  instance that was converted to <a class="el" href="class_catharsis_1_1_commons_1_1_convert_extensions.html#a172dd9014589265e6e8345b0882d1589">Regex</a>, or a <code>null</code> reference.</dd></dl>
<dl class="exception"><dt>Exceptions</dt><dd>
  <table class="exception">
    <tr><td class="paramname">ArgumentNullException</td><td></td></tr>
  </table>
  </dd>
</dl>

</div>
</div>
<a class="anchor" id="a9ef0024ed81eef65a6569a676430e7d3"></a>
<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">static Single Catharsis.Commons.ConvertExtensions.Single </td>
          <td>(</td>
          <td class="paramtype">this <a class="el" href="class_catharsis_1_1_commons_1_1_convert.html">Convert</a>&#160;</td>
          <td class="paramname"><em>self</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">object&#160;</td>
          <td class="paramname"><em>subject</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">static</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">
<p>Converts target object to the <a class="el" href="class_catharsis_1_1_commons_1_1_convert_extensions.html#a9ef0024ed81eef65a6569a676430e7d3">Single</a> value. Returns <code>null</code> if object is a <code>null</code> reference or conversion is not possible.</p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">self</td><td>Extended converter instance.</td></tr>
    <tr><td class="paramname">subject</td><td>Target object for conversion.</td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>Returns</dt><dd><em>subject</em>  instance that was converted to <a class="el" href="class_catharsis_1_1_commons_1_1_convert_extensions.html#a9ef0024ed81eef65a6569a676430e7d3">Single</a>, or a <code>null</code> reference.</dd></dl>
<dl class="exception"><dt>Exceptions</dt><dd>
  <table class="exception">
    <tr><td class="paramname">ArgumentNullException</td><td>If <em>self</em>  is a <code>null</code> reference.</td></tr>
  </table>
  </dd>
</dl>

</div>
</div>
<a class="anchor" id="a74fb1084f67c0016a7b14736fe494033"></a>
<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">static string Catharsis.Commons.ConvertExtensions.String </td>
          <td>(</td>
          <td class="paramtype">this <a class="el" href="class_catharsis_1_1_commons_1_1_convert.html">Convert</a>&#160;</td>
          <td class="paramname"><em>self</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">object&#160;</td>
          <td class="paramname"><em>subject</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">static</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">
<p>Converts target object to the string value. Returns <code>null</code> if object is a <code>null</code> reference or conversion is not possible.</p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">self</td><td>Extended converter instance.</td></tr>
    <tr><td class="paramname">subject</td><td>Target object for conversion.</td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>Returns</dt><dd><em>subject</em>  instance that was converted to string, or a <code>null</code> reference.</dd></dl>
<dl class="exception"><dt>Exceptions</dt><dd>
  <table class="exception">
    <tr><td class="paramname">ArgumentNullException</td><td>If <em>self</em>  is a <code>null</code> reference.</td></tr>
  </table>
  </dd>
</dl>

</div>
</div>
<a class="anchor" id="ae96c56fa2ecfa63ee4aa2c0b4d5a01c2"></a>
<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">static Uri Catharsis.Commons.ConvertExtensions.Uri </td>
          <td>(</td>
          <td class="paramtype">this <a class="el" href="class_catharsis_1_1_commons_1_1_convert.html">Convert</a>&#160;</td>
          <td class="paramname"><em>self</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">object&#160;</td>
          <td class="paramname"><em>subject</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">static</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">
<p>Converts target object to the <a class="el" href="class_catharsis_1_1_commons_1_1_convert_extensions.html#ae96c56fa2ecfa63ee4aa2c0b4d5a01c2">Uri</a> value. Returns <code>null</code> if object is a <code>null</code> reference or conversion is not possible.</p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">self</td><td>Extended converter instance.</td></tr>
    <tr><td class="paramname">subject</td><td>Target object for conversion.</td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>Returns</dt><dd><em>subject</em>  instance that was converted to <a class="el" href="class_catharsis_1_1_commons_1_1_convert_extensions.html#ae96c56fa2ecfa63ee4aa2c0b4d5a01c2">Uri</a>, or a <code>null</code> reference.</dd></dl>
<dl class="exception"><dt>Exceptions</dt><dd>
  <table class="exception">
    <tr><td class="paramname">ArgumentNullException</td><td>If <em>self</em>  is a <code>null</code> reference.</td></tr>
  </table>
  </dd>
</dl>

</div>
</div>
</div><!-- contents -->
</div><!-- doc-content -->
<!-- start footer part -->
<div id="nav-path" class="navpath"><!-- id is needed for treeview function! -->
  <ul>
    <li class="navelem"><a class="el" href="namespace_catharsis.html">Catharsis</a></li><li class="navelem"><a class="el" href="namespace_catharsis_1_1_commons.html">Commons</a></li><li class="navelem"><a class="el" href="class_catharsis_1_1_commons_1_1_convert_extensions.html">ConvertExtensions</a></li>
    <li class="footer">Generated on Wed Aug 6 2014 00:10:36 for Catharsis.NET.Commons by
    <a href="http://www.doxygen.org/index.html">
    <img class="footer" src="doxygen.png" alt="doxygen"/></a> 1.8.7 </li>
  </ul>
</div>
</body>
</html>
